package com.qf.advice;

import org.springframework.aop.ThrowsAdvice;

/**
 * projectName: wokepase1
 *
 * @author: 强力
 * time: 2021/8/30 19:38
 * description:异常通知
 * 只有异常才会执行通知中的方法
 */
public class ExceptionAdvice implements ThrowsAdvice {
    public void afterThrowing(Exception ex){
        System.out.println("异常通知:my throws 异常通知");
    }
}
